package org.jerry.virtualoperator.form;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

@Data
public class VsmsCreateForm {

    @NotEmpty
    private List<SendMeta> metas;
    @NotNull
    private Long templateId;
    @NotBlank
    private String callbackUrl;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SendMeta {
        private String mobile;
        private Map<String, String> variables;
    }
}
